package com.shensi.api.admin.client.station;

import com.shensi.api.admin.client.fallback.monitor.SysLogininforClientFallBack;
import com.shensi.api.admin.domian.applet.dto.PayOrderDto;
import com.shensi.common.core.constant.CloudConstant;
import com.shensi.common.core.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * @author mao
 */
@FeignClient(
        value = CloudConstant.ADMIN_SERVER,
        fallbackFactory = SysLogininforClientFallBack.class)
@Component
public interface PayOrderAllClient {

    @PostMapping("/payOrderAll/add")
    public AjaxResult addPayOrderAll(@RequestBody PayOrderDto payOrder);

    @PostMapping("/payOrderAll/update")
    public AjaxResult updatePayOrderAll(@RequestBody PayOrderDto payOrder);


    @GetMapping("/payOrderAll/refresh")
    public AjaxResult refresh();

}
